package com.rose.springbootwebsocket;

import com.rose.springbootwebsocket.config.WebSocket;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SpringbootWebsocketApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(SpringbootWebsocketApplication.class, args);
        WebSocket.setApplicationContext(run);
    }
}
